package com.advert.boot.system.service;

import com.advert.boot.system.model.form.WeChatPay;

import java.util.Map;

/**
 * 微信支付接口封装服务层
 */
public interface WxPayService {

//    String save(String orderNo, double amount, String body, Integer uid);
//
//    boolean callBackPayUpdate(String outTradeNo, String totalFee);

    /**
     * 微信支付统一预下单接口 请查看接口规则 https://pay.weixin.qq.com/wiki/doc/api/native_sl.php?chapter=9_1
     * shuqingyou 2022/9/16
     * @param weChatPay 参数值appid 商户id等等
     * @return Map<String, Object> NATIVE支付则返回二维码扫描地址
     * @throws Exception
     */
    Map<String, Object> unifiedOrder(WeChatPay weChatPay) throws Exception;
}
